#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import insecure_course_blueprint
from .insecure_courseResource import InsecureCourseResource
from .insecure_courseOtherResource import InsecureCourseOtherResource

api = Api(insecure_course_blueprint)

api.add_resource(InsecureCourseResource, '/insecure_course/<courseID>', '/insecure_course', endpoint='insecure_course')

@insecure_course_blueprint.route('/insecure_course/sql', methods=['GET'], endpoint='insecure_course_sql')
def InsecureCourse_Sql():
    return InsecureCourseOtherResource.sql_get()